cmake_minimum_required (VERSION 2.8.5)
cmake_policy (SET CMP0054 NEW)
project (Sponge)

include (scripts/clang_format.cmake)
include (scripts/clang_tidy.cmake)
include (scripts/cppcheck.cmake)
include (scripts/build_defs.cmake)
include (scripts/build_type.cmake)
include (scripts/cflags.cmake)



#include (etc/doxygen.cmake)

include_directories ("${PROJECT_SOURCE_DIR}/src/apps")
include_directories ("${PROJECT_SOURCE_DIR}/src/lib/adapter")
include_directories ("${PROJECT_SOURCE_DIR}/src/lib/eventloop")
include_directories ("${PROJECT_SOURCE_DIR}/src/lib/fd")
include_directories ("${PROJECT_SOURCE_DIR}/src/lib/ipv4")
include_directories ("${PROJECT_SOURCE_DIR}/src/lib/socket")
include_directories ("${PROJECT_SOURCE_DIR}/src/lib/tcp")
include_directories ("${PROJECT_SOURCE_DIR}/src/lib/tun")
include_directories ("${PROJECT_SOURCE_DIR}/src/lib/util")

add_subdirectory ("${PROJECT_SOURCE_DIR}/src/apps")
add_subdirectory ("${PROJECT_SOURCE_DIR}/src/lib")

#include (etc/tests.cmake)
